package com.renchunlin.taobaounion.model.domain;

/*
 * class title:
 * Author by RenChunLin, Email 18957806320@163.com, Date on 2021/1/27.
 * PS: Not easy to write code, please indicate.
 */
public class CacheWithDuration {

    private long duration;

    private String cache;

    public CacheWithDuration(long duration, String cache) {
        this.duration = duration;
        this.cache = cache;
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public String getCache() {
        return cache==null?"":cache;
    }

    public void setCache(String cache) {
        this.cache = cache;
    }
}
